#ifndef ADBWORKER_H
#define ADBWORKER_H

#include <QObject>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include "mymap.h"
class ADBWorker : public QObject
{
    Q_OBJECT
public:
    explicit ADBWorker(QObject *parent = nullptr);
    //ADB连接
    void ADBconnect();
    //ADB连接
    void ADBdisconnect();
    //ADB重连
    void ADBreconnect();
    //关闭雷达进程
    void ADBkillradar();
    //关闭视频进程
    void ADBkillcamera();
    //传输文件重启
    void ADBsendrfile();
    void ADBsendcfile();
    //删除原有固件
    void ADBdeleterfile();
    void ADBdeletercfile();
    //下发雷达新固件权限
    void ADBchmodradar();
    void ADBchmodcamera();
    //重启雷达程序
    void ADBreboot();
    //查询JSon文件
    void ADBReadJson();
signals:
    void sendADBmsg(int,QString);
public slots:
    void checkdevice();
};

#endif // ADBWORKER_H
